org.jboss.byteman.agent.adapter
Class BMLocalScopeMethodAdapter

java.lang.Object
  extended by org.objectweb.asm.tree.MemberNode
      extended by org.objectweb.asm.tree.MethodNode
          extended by org.jboss.byteman.agent.adapter.BMLocalScopeMethodAdapter
All Implemented Interfaces:
org.objectweb.asm.MethodVisitor

public class BMLocalScopeMethodAdapter
extends org.objectweb.asm.tree.MethodNode

a subclass of JSRInlinerAdapter which pushes local variable info through to the next adapter inline during code generation if it wants it


Field Summary
 
Fields inherited from class org.objectweb.asm.tree.MethodNode
access, annotationDefault, desc, exceptions, instructions, invisibleParameterAnnotations, localVariables, maxLocals, maxStack, name, signature, tryCatchBlocks, visibleParameterAnnotations
 
Fields inherited from class org.objectweb.asm.tree.MemberNode
attrs, invisibleAnnotations, visibleAnnotations
 
Constructor Summary
BMLocalScopeMethodAdapter(org.objectweb.asm.MethodVisitor mv, int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
          creates a method node with an instruction list which notifies local var scope start and end events.
 
Method Summary
 void visitEnd()
          once we have seen all the opcodes we can push the stored method tree through the next visitor in line
 
Methods inherited from class org.objectweb.asm.tree.MethodNode
accept, accept, visitAnnotationDefault, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class org.objectweb.asm.tree.MemberNode
visitAnnotation, visitAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.asm.MethodVisitor
visitAnnotation, visitAttribute
 

Constructor Detail

BMLocalScopeMethodAdapter

public BMLocalScopeMethodAdapter(org.objectweb.asm.MethodVisitor mv,
                                 int access,
                                 java.lang.String name,
                                 java.lang.String desc,
                                 java.lang.String signature,
                                 java.lang.String[] exceptions)
creates a method node with an instruction list which notifies local var scope start and end events. should only be called with a method visitor which is an instance of LocalScopeMethodVisitor

Parameters:
mv -
access -
name -
desc -
signature -
exceptions -
Method Detail

visitEnd

public void visitEnd()
once we have seen all the opcodes we can push the stored method tree through the next visitor in line

Specified by:
visitEnd in interface org.objectweb.asm.MethodVisitor
Overrides:
visitEnd in class org.objectweb.asm.tree.MemberNode


Copyright © 2012. All Rights Reserved.